Repository navigation
Pin the dashboard for the November 17 coder-gates release - #767
Merged
Merged
Conversation
nambok
added a commit
that referenced
this pull request
Nov 19, 2026
* No second run on a ticket whose pull request already merged
On one team's app, watched over seven months, duplicate runs made up
most of CoderHelm's unmerged pull requests. A retry, a ticket edit, or a
run started while the first pull request had merged into an integration
branch rebuilt the same change from nothing.
Before a fresh run on a person's ticket (a Jira key or a GitHub issue)
does any work, it now checks the ticket's pull requests: the ones its
earlier runs opened, and any whose title, branch or description names
the ticket, by any author and into any base branch. CoderHelm already
reads these for the ticket's history. When one merged, the run stops
before a repository is picked or a model is called. The run page and the
ticket say which pull request merged, into which branch and when, and
how to run the ticket anyway. The run ends waiting on a person, with
`stop_kind: already_merged`.
A person runs the ticket anyway by pressing Retry on the stopped run,
reopening the Jira ticket, or replying on the ticket with what is still
to do. A run started that way is recorded, so its retries and later runs
on the ticket aren't stopped by the same merge; a newer merge stops them
again. CoderHelm's own work (alerts, log findings, flaky tests, security
fixes, plan tasks) is never stopped, because the same finding can come
back after its fix merged.
The trigger gate:
- A ticket edit after such a stop starts nothing, so the ticket doesn't
collect one stop after another. Reopening it, or Retry, starts the
work.
- After 3 failed runs in a row, an event that leaves the ticket
unchanged starts no further run. A field or status change used to
start the same failing run every time. An edit, a reopen, Retry or a
command still start one.
Open pull requests that already do the work were handled before this
change and still are.
Deferred:
- Holding a run while the ticket's blocking links are open: the Jira app
doesn't send issue links yet, and what happens when a blocker closes
is a product decision.
- A ticket-level target-branch field: a target branch written in the
ticket text is already honoured. A field needs the Jira app to send
custom fields and a decision on which field to read.
* no-mistakes(review): Scope merged-ticket stop to the ticket's own PRs
* no-mistakes(review): Limit after-merge overrides to explicit person asks
* no-mistakes(review): Scope GitHub gate and link issues by closing refs
* no-mistakes(review): Skip reverted merges; rank ticket PRs first
* no-mistakes(review): Count only failed runs; link PRs from full body
* no-mistakes(review): Fix stale doc on failed_in_a_row field
* no-mistakes(review): Count Revert-button PRs of the ticket's own PR
* no-mistakes(review): Keep a revert ahead of its target in candidates
* no-mistakes(test): Apply cargo fmt and clippy char-array trim fix
* A description gets a final review, follows the repository's template, and a run delivers its change whatever outside work it needs (#703)
* A description gets a final review before it is posted, follows the repository's template, and a run delivers its change whatever outside work it needs
A pull request description showed six checks as "still running when this
was written" and never changed them, asked a person for deploy
credentials in a repository that deploys staging from a label CoderHelm
adds, said the file to read first and the way back twice each, closed its
review focus with "nothing is out of the ordinary", named a page by its
raw id, and listed running and did-not-run checks on one line. The
repository's template only guided the first draft.
- Final review in the one save (common::pr_review): a running check reads
Running and is never a result; nothing the gate does not let through
reaches a person; nothing said twice; no filler; no raw id beside a
name; running and did-not-run said apart.
- Running checks render as Running, the conclusion says they are still
running, and the stamp marks the description for a rebuild until they
end, so the checks step, the watch and the end of the run replace them.
- The reviewer guide gives way to the lead (it said Read first and
Rollback again); its own lines keep running apart from did-not-run.
- A staging deploy the repository lets CoderHelm start (a dispatchable or
labelled workflow) is CoderHelm's step (outside_work::own_startable).
- The repository's pull request template is the visible structure: its
headings in order, filled with CoderHelm's content (common::pr_template,
pr_body::render_templated); the rebuild reads it, cached per repository.
- A plan with code is implemented and its pull request opened whatever
outside work it needs (route_for_plan), and a run whose pull request is
open ends completed, with person-only items listed once under Needed
from you and on the run page.
- Incident case bl replays the posted description with neutral names.
* A deploy CoderHelm can start is found, started and recorded, and feedback about outside work keeps the code change
- Detection: a staging deploy job a pull request label starts, or a
dispatchable staging workflow, is a deploy route even when it is not the
CMS's; label conditions are read with or without spaces; a run line that
runs a package deploy script counts. A production-only route is never
taken for staging.
- The gate is told: classify_with sets person_gate::Context::can_deploy from
the repository's routes, and a deploy CoderHelm can start and has not
tried is never a person's credential item (an attempt whose own cause is
a listed reason still is). The executor classifies with it.
- Executed, not reworded: next_action gives the moved step its route's
action (label or dispatch); record_end records the run that ended on the
step, which the resume saves on the run.
- Feedback: a person saying part of the fix is outside the code keeps the
open pull request and its code when the plan coded
(route_for_feedback), records the outside part on the run's decision
and lists it on the pull request; only a pull request with no code to
keep is closed as before.
- Incident bl: three cases for the above.
* Keep every event path inside its team (#704)
* Keep every event path inside its team
An audit of inbound webhooks, live streams, queues, notifications,
team knowledge and caches found four keys that named a shared thing
instead of the team. Each is proven by a test that failed before the fix.
- Slack workspace and Teams webhook links are claimed by one team at a
time (flag::claim_chat); another team's link is refused, an unlink only
drops the caller's own, and inbound routing requires the team's
settings to still name the key.
- Run page GitHub check reads are cached per installation (read_key), so
a same-named repository never gets another installation's cached checks.
- Composed replies are cached by the full prompt they were written from,
so two Jira sites sharing a ticket key and comment id never share one.
- Run event rows carry team_id; every read keeps only the asking team's
rows, all through common::run_events.
- The plan chat stream token is scoped to its stream, like the brain's.
Incident case bm_teams_never_cross scans for new inbound routes,
process-wide caches and direct events table access that don't say how
they stay in their team.
* Keep the plain session token builder for tests only
The plan chat stream was its last caller outside tests; streams now use
scoped tokens.
* Key the PR template cache by installation, as every process-wide cache is
* Read the installation through its accessor
* Release: Atlassian as one connection, infrastructure findings that follow AWS, log findings that trace their repo, built-in team bases, lower model spend (#713)
Combines #708, #709, #711, #710 and #712 into one change so CI runs once.
* Pin the dashboard for the Atlassian, infrastructure findings and team bases release (#714)
* A description built by an earlier writer is rebuilt after an upgrade (#715)
* A description built by an earlier writer is rebuilt after an upgrade
The description stamp named the head, the digest of the checked text and
running checks, never the writer that built it, so a pull request opened
before an upgrade kept its old layout and wording on an unchanged head.
- The stamp carries the writer version (description::WRITER, now 2). A
stamp without a version, or with another, is not current. Old stamps
still parse.
- The pull request watch sweep catches up open pull requests CoderHelm
opened, whatever the age of their run: up to 3 per team and 15 per
sweep, inside the sweep's GitHub budget, through the one rebuild
(reconcile_run, final review in save). Each is marked on its run
(description_writer) so it is read once per writer version.
- A description with no CoderHelm stamp, or whose checked text a person
changed, is left as it is.
- Incident bn replays an old-layout description on an unchanged head.
* The catch-up builds a description wholly CoderHelm's from the facts alone
An older description had no lead or reviewer-block markers, so its
rebuild kept the old lines (frozen "still running" rows, "Look first",
"Roll back") in a fold. When the stamp's digest still matches, nothing in
the body is a person's: the catch-up (description::catch_up_run) now
drops the old body and renders it from the facts of the head, keeping
only a line that closes an issue. The build checks the body again as it
reads it, so an edit made since the sweep looked is never written over.
* Pin the dashboard for the PR description catch-up release (#716)
* Release: plans survive a cut revision; old security pull request descriptions rebuilt fresh (#720)
Combines #718 and #717 so CI runs once.
* Pin the dashboard for the description review and team isolation release (#721)
* Updater retries by itself when AWS throttles an update before it changes anything (#722)
A throttled DescribeChangeSet during the deploy role check came back as
"couldn't check", failed the update and told the admin to press Update
again. Throttling now never counts as a refusal: every AWS client uses
botocore's adaptive retry mode, each step before the change set runs is
tried again with backoff and jitter, and the update (or the Update press)
keeps waiting as "AWS is busy, retrying (attempt n)". Only after 10 minutes
does it fail, in words that ask nothing of anyone, and it starts again by
itself 30 minutes later unless an admin cancels it (DELETE
/api/system/update). The model check stays pending, never refused, while
AWS is busy.
* Pin the dashboard for the November 16 release (#723)
* Own review findings answered with proof close; a check cut short by time continues (#726)
A review-fix round that answered a finding with proof and pushed nothing
was never read by a review: the parked round's end marked the pull request
ready and completed, the completion guard reran the checks (which never
review the head), and the next look refused another round on the same head
and held the draft for a person. A check the step was too short to start
was counted as a block and could end in that same hold.
- A round that pushed nothing, or used every step, goes back to a review of
the same head; the reviewer is given the round's account and the rule for
judging proof. A finished run whose last round no review read is sent back
to that review on the next look of the ready sweep or the pull request
watch, so stuck runs recover by themselves.
- A command, run_checks or codegen a step is too short to start is owed: the
pass continues in a fresh step that runs it first. A round cut short by
time is neither a stall nor a block in the ledger.
- No CoderHelm limit holds a draft for a person: what is left after every
approach is listed as CoderHelm's note, the pull request goes ready, and
CoderHelm's verdict is kept so nothing merges over it. Passing moments
(a race, a read that failed) are waits.
- Incident bt reproduces the case.
* Relay lists every install admin; unconfirmed sign-ups get set up; true send errors (#727)
The relay refused set-up and forgot-password emails (inviter_not_admin):
only the config's admins were ever listed as relay admins, so the owner
and other admins, copied-over ones included, could not vouch. The install
now names all its admins to a new signed /hybrid/email/admins sync, after
role changes and whenever the relay refuses an admin, then retries.
An unconfirmed Cognito sign-up counts as no account: forgot-password and
the Members page send the set-up email, and signing up again replaces it.
Refused sends answer with the reason. The custom-message Lambda reads
SES v2's TemplateContent.
* Chat: delete several chats at once (#728)
POST /api/brain/threads/delete takes up to 100 ids and deletes each one
the caller started, in their own team, with the same checks as the single
delete (now shared in delete_verdict). Someone else's private chat or
another team's id answers "No such chat."; a teammate's shared chat is
refused. Each id gets its own result, and one failure stops nothing else.
* GitHub sign-in lands on the person's one record; copied invites get sent from the install (#730)
- A GitHub-only record (no email) next to the same person's record by
email is folded into it at their GitHub sign-in: the higher built-in
role stays and the GitHub-only record is removed. The GitHub email is
never written onto a second record on the same team.
- The GitHub id lookup reads every record instead of one at random, so an
install's own record (or, hosted, the team someone was added to) wins.
- An invite dated before the organization was made on the install and
never sent from it is offered by forgot-password and the bulk set-up
email; sending it restarts its 30 days.
- A refused password sign-in is logged by cause; no sign-in here is info.
Depends on #727.
* CI: skip the Rust steps when a pull request changes nothing Rust reads (#724)
Rust (clippy) and Rust (tests) still run on every pull request and report,
but a changed-files check against the merge base skips their steps when no
file the workspace builds, embeds or scans changed (a dashboard pin in
selfhost/versions.json). The list lives in .github/scripts/rust_affected.py
with a unit test; anything uncertain runs everything.
* Pin the dashboard for the November 16 afternoon release (#731)
* Chat answers "what needs me" from every source in one call (#729)
work_needs_me gathers what waits on the asker, side by side and time-bounded:
run questions (with their options), runs waiting on an outside change,
Coderhelm's open pull requests on their own work, tool calls held for an
admin, Jira tickets assigned to them or mentioning them unanswered, and
GitHub review requests, their own pull requests with changes asked for or
failing checks, and unanswered mentions. Grouped by urgency, ranked by
priority and age, stale tickets left out; a source that couldn't be read
is named. Any wording routes there, and an answer that skipped it is sent
back once. The Jira app gets a by-person read. Data source steps now say
what they read instead of "api get".
* Coder bash: read-only curl/wget run as page fetches, chains and history reads run as tools, commands run after the install (#732)
- curl/wget GET or HEAD run through the page check's safety rules and
return the status, every header and part of the body; requests that
send data, upload, authenticate, write a file or use a proxy are refused
with the reason and the read-only form.
- Reads chained with ; && || run as their tools in order; git log, git
show and git blame run as github_history or a read at a ref; sandbox
command chains run as one build with each part asked of the gate; a
refused part of a chain is named with the parts that can run.
- Sandbox commands run after the repository's install (corepack enable
only when the command installs on its own). Exit 127 records the
missing program and the routes that work, and a later command that
needs it gets that note without another build.
- Refused and failed tool events carry their message to the run page
while the step runs; the run log line names the actual refusal.
* One short status comment per pull request and ticket (#736)
Every status and note CoderHelm writes now goes into the thread's one
status comment, edited in place. No "This replaces what I wrote", no
History block, no new comment per update. A status that needs nothing
from anyone is never posted; it stays on the run page and in the
description. Earlier status comments are rewritten to one line and hidden
as outdated on the next update, never deleted.
Every comment passes comment_style::render and comment_style::lint before
it is written: at most five lines, no template plurals, no pasted plan
text, no deploy maps or workflow path dumps, no repeated sentences. One
that still breaks the style is not posted.
The person gate sends testing work (reading an end-to-end result, running
a flow in browsers) back to CoderHelm. The outside-work and release notes
carry only what a person must do, the release section lists only the
deploys the release waits on, and an end-to-end run with a label route is
started by its label first.
The GitHub App manifest asks for Actions: write (workflow_dispatch);
setup checks warns about it once when an older app lacks it, never fails.
* CI: Rust tests can no longer hold the runner for an hour (#738)
* CI: Rust tests can no longer hold the runner for an hour
Five times since 13 November the Rust (tests) job lost its runner during the
first cargo step and failed after 55 minutes with no log; reruns passed. That
step built the whole workspace with full debug info (about 19 GB of target,
close to 14 GB of compiler memory at four jobs) and then ran the suite.
- The job builds with line-tables debug info: file:line stays in panics and
backtraces, at about a third of the disk and build time.
- The build is its own step, printing disk and memory every minute.
- Every test step runs through cargo-nextest: each test in its own process,
ended and failed under its own name after two minutes
(services/.config/nextest.toml). Each step has a time limit as a backstop.
- q_run_ceiling built 100,000 DynamoDB clients in one test (a minute of CPU,
the slowest test in the suite); it now builds one per scenario.
* CI: say what the runner measured: memory is the tight resource, not disk
* Pin the dashboard for the November 16 evening release (#740)
* Held drafts are decided again on the first sweep after a release (#733)
A release that changed how a held draft is finished never reached the
draft it was for. The draft sweep re-decides a hold only once it is an hour
old, so the first sweep after the release only peeked; the next one was
skipped for GitHub's budget with "it looks again in about 1 min", and
nothing looked until the next scheduled sweep; the pull request watch spent
its hourly cap on merged pull requests and never reached the draft.
- A hold records the version of the code that decided it. The sweep
decides a hold other code wrote on its first pass, decisions before peeks.
- A sweep the budget skipped runs again once the budget refills: one
delayed review_sweep per gap, claimed so workers send only one.
- The pull request watch looks at held drafts first.
- Incident bu reproduces the case.
* End-to-end results are read, never handed to a person for a permission (#735)
* End-to-end results are read, never handed to a person for a permission
A step that only had to read the pull request's end-to-end results was
routed to a workflow_dispatch start. The installation's token lacked
Actions: write, so the start was skipped before any request was sent, and
the step's words ("not allowed to start workflows") were read by the
person gate as "a permission only a person grants": two "before merge"
items for a repository admin, with no refusal from GitHub behind them.
A quoted page text in the step was also read as a workflow name.
- github_grants::Denial: the only way to claim a permission, built from a
real 403/404 on a named API (never a budget hold, rate limit or
timeout), naming the API and the permission it needs.
- person_gate: Reason::Grant only when grant_backed; a missing
connection or token is a credential, not a permission.
- e2e_reads: the head's end-to-end result from check runs and their
annotations, workflow runs, the end-to-end PR comment and the report it
links to (under the page check's host rules).
- outside_exec: without Actions: write, the label route first, then the
read routes; a read step left on the permission is one install-level
line and stays CoderHelm's; only workflow names are read as runs.
- Setup checks: github_workflow_starts names Actions: write once for the
install (skip, never warn or fail; the installer still doesn't ask).
* Collapse the report-link condition for clippy
* Setup checks: the permissions check names the optional Actions: write as main now asks
Main lists Actions: write as an optional permission (a warning for the
install); the starting-workflows line stays a skip, and nothing reaches a
pull request.
* Pin the dashboard for the November 16 night release (#745)
* No CoderHelm limit hands a pull request to a person (#739)
Only a reason on the human-only list keeps a draft for a person. Four
paths still did it over CoderHelm's own limits: a security fix whose CI
stayed red after its fix rounds, a wait unchanged for two hours, lines in
the description (security items, unfinished planned work, a failed check,
review findings), and GitHub refusing to mark a pull request ready.
- A hold reason names its human-only reason (Reason::person); only those
make a hold a person's. Every other reason is CoderHelm's note on a pull
request that goes ready, once its attempts are spent.
- A stalled wait is CoderHelm's next action: its checks run on the head
again in a fresh step, twice, then its note.
- A security fix whose CI stays red after every set of bumps that could
come out did is completed and ready, with the failing checks noted.
- Dependency fixes: a scope's packages on one minor line are a family
found from the lockfile when no registry record names their source, so
a head that raises one alone fails the set. Tests cover the type check
added when CI runs none and the major-override evidence section.
- Incidents bv and bw reproduce the cases; older tests that encoded a
person's hold for these reasons now read the reasons as found and assert
the note.
* Incident cases are found by the build, one page each: adding one edits nothing shared (#747)
Each case added a mod line to incidents/mod.rs and a row to the
docs/incidents.md table, so open pull requests that each added a case
always conflicted. worker/build.rs now lists incidents/*.rs and writes the
mod lines (and CASES) to an include; each case has its own page in
docs/incidents/; a test pairs cases with pages; a script prints the table;
CI checks the case files' formatting by name, since cargo fmt doesn't
follow the include.
* Alerts: an honest card for alarms no rule names; WAF evidence for alert rule runs (#741)
* Alerts: an alarm no rule names is investigated and fixed, not only posted
A CloudWatch alarm that no rule on a fix route named was posted as
"Notification only" even when its cause lives in code a team's repo
defines. Now it starts a run: the worker picks the repo from where the
alarm's names appear in the code, reads the alarm's evidence (for AWS WAF
alarms, the rule's sampled requests and the web ACL's logs) and opens a
fix there. Only a notify route, the route's notify_alarms, or an alarm
with no cause in code (billing, quotas, Trusted Advisor, Health, a host's
system check) stays a post.
The read-only role templates and the boundary gain the WAF reads
(ListWebACLs, GetSampledRequests, GetLoggingConfiguration); the boundary
reaches an install when an AWS admin applies the access stack.
* Alerts: keep unnamed alarms post-only; WAF evidence for rule runs
Alarms no rule names stay post-only at no token cost, as the routing is
designed: the investigation default, its rule and the no_code_cause
outcome are removed. The card says so honestly ("No rule on this route
names this alarm") and links to the route settings to add one.
A run an alert rule starts for an AWS WAF alarm reads the rule's sampled
requests and the web ACL's logs before planning. The wafv2 reads stay in
the role templates, ABILITIES and the boundary.
native-sim.json is regenerated with deploy-role-sim.py --native (the
script now maps EC2 resources); AWS's registry lists ECR image reads for
Lambda functions, recorded as refusals on purpose since every function is
a zip.
* CoderHelm's earlier reviews get out of the way of its latest one (#746)
* CoderHelm's earlier reviews get out of the way of its latest one
When CoderHelm posts a review, each of its earlier reviews is rewritten
to one line, its earlier inline comments in its own threads are hidden as
outdated, its threads the new review no longer raises are resolved, and
its own earlier request for changes is dismissed. Never a person's
review, comment or thread, and never a thread where a person's reply is
unanswered. The plan is pure (common::review_supersede); the conversation
layer carries it out, skipping a step GitHub refuses with a log line.
* The review guard lets the conversation layer collapse CoderHelm's own earlier reviews
* A person's lines on a branch stay theirs; scope churn never becomes commits (#743)
* A person's lines on a branch stay theirs; scope churn never becomes commits
Every write CoderHelm commits is held against the commits people made on
the branch: a part that puts back a line they removed or takes out one
they added is not committed, and the pull request's one note says what
was kept and asks. A round a person asked for lifts the hold.
The revert after red checks puts back only CoderHelm's own changes, the
build of the plan is bounded by the plan's files, and CoderHelm's own
commits that change a file and put it back are folded away.
* A round on the pull request never restores a planned file
Audited runs restored a file the plan changes and rebuilt it from scratch,
up to fourteen times in one run. In planned-work, proof and fix rounds,
restore_file on a planned file is refused (the round edits what is on the
branch); any other file is restored only to the pull request's base.
* Web changes are proven on their preview before they are called ready (#734)
* Web changes are proven on their preview before they are called ready
A web pull request was marked ready with its preview deploy and preview
end-to-end checks skipped (they skip drafts and run on a label), listed
as "skipped (its conditions left this PR out)" next to passing unit tests,
with no screenshot, "npm test" as the way to check it, and a tests check
that passed on 0 of 6 changed tests failing without the change.
- common::preview reads the repository's workflow files (on: events,
paths, branches, types, and each job's if: labels) into the preview and
end-to-end jobs that cover the change, the labels that start them (the
test map's areas first, never a shared environment's label) and which
skip drafts; it also decides from the paths and the tree whether a
visible change needs an end-to-end spec, the pages to capture, the
capture script and the real "How to check" commands.
- worker::preview starts the preview (labels, a push when the workflow
reads labels only on one), reads its checks and address, captures the
changed pages at desktop and phone width in the sandbox and keeps them
on refs/coderhelm/screenshots; the PR watch does it for finished runs.
- The ready decision marks a draft ready for preview checks that skip
drafts and waits on them; a failed preview or a visible change with no
end-to-end spec holds it.
- A skipped check that covers the change is a gap in the description,
never evidence; the description shows the preview, its checks and the
captured pages.
- The tests check never passes on zero tests failing without the change;
the reviewer requests changes on a visible change with no end-to-end
spec; the coder and planner prompts say so too.
- common::waiting_line gives the run page and the description one line on
what the pull request waits on; the gateway serves it with the preview.
* Failures are read from their report, checks are named by the job that covers the change, outside pages are probed
- common::e2e::failure_read: a failed end-to-end check is read from the
e2e workflow's comment on the pull request, its annotations, then its
job log, before anything is said about it; "couldn't be read" only when
all are empty. Whether the change caused it comes from the same check on
the base branch and the specs the change touched. The preview state
records each failure, the description says it, and a line claiming an
unread log is dropped while a report exists.
- common::ci_cover maps the changed paths to the jobs that run on them
(paths filters, branches, working-directory). "How to check" and Open
items come from that mapping; a check command aimed at a folder the
change doesn't touch is dropped, and "no CI job covers this change" is
said when none does.
- common::e2e::probe and the coder's probe_page tool: an outside page is
loaded with Playwright in the sandbox and its test ids and JSON fields
recorded under .coderhelm/probes/. The review requests changes on a new
or changed e2e file whose selectors or fields on an outside origin no
probe observed.
* A merge is followed through its deploy, whoever merged it (#748)
A person merged one of CoderHelm's pull requests hours after closing its
run by hand, and nothing followed the deploy:
- The merge kept the run closed, and the pull request watch looked only
at finished runs, so the merge commit's deploy was never watched. A
merge CoderHelm made itself was watched; a person's was not.
- The release steps armed when the pull request opened waited on another
service's deploy: a workflow with a production job on merge to main and
a path filter on that service's folder, which never runs for the change.
Staging's deploy was not a step, and the v* tag that deploys production
was never asked for.
Now:
- pr_watch: a merged pull request takes Act::WatchDeploy whatever the run's
status (finished, merged by CoderHelm, or closed, cancelled or failed
before a person merged it). The act watches the merge commit's deploy
and follows the release. The sweep reads merged runs a person ended
until their deploy is followed, so merges already missed are picked up;
a closed pull request's outcome is looked at as soon as it is scored.
- release_plan: workflows' push path filters are read. A deploy is the
change's only when its workflow runs for the files the pull request
changed, and a workflow named for its environment goes before one
service's deploy. A release with no migration waits for staging's
deploy, then production's by the repository's own path.
- release_run: follow_merge re-derives the deploys at the merge commit and
points an armed release at the right ones, keeping steps already done;
a pull request with no release gets its deploys followed. A step waiting
on a person's approval is said once in the pull request's one status
comment.
Incident bx covers both merges taking the same follow, the existing
release re-pointed, and the catch-up.
* Pin the dashboard for the November 16 late night release (#749)
* Descriptions are Problem, Changes, Risk, Verification; settled items go; a few logical commits (#737)
* Web changes are proven on their preview before they are called ready
A web pull request was marked ready with its preview deploy and preview
end-to-end checks skipped (they skip drafts and run on a label), listed
as "skipped (its conditions left this PR out)" next to passing unit tests,
with no screenshot, "npm test" as the way to check it, and a tests check
that passed on 0 of 6 changed tests failing without the change.
- common::preview reads the repository's workflow files (on: events,
paths, branches, types, and each job's if: labels) into the preview and
end-to-end jobs that cover the change, the labels that start them (the
test map's areas first, never a shared environment's label) and which
skip drafts; it also decides from the paths and the tree whether a
visible change needs an end-to-end spec, the pages to capture, the
capture script and the real "How to check" commands.
- worker::preview starts the preview (labels, a push when the workflow
reads labels only on one), reads its checks and address, captures the
changed pages at desktop and phone width in the sandbox and keeps them
on refs/coderhelm/screenshots; the PR watch does it for finished runs.
- The ready decision marks a draft ready for preview checks that skip
drafts and waits on them; a failed preview or a visible change with no
end-to-end spec holds it.
- A skipped check that covers the change is a gap in the description,
never evidence; the description shows the preview, its checks and the
captured pages.
- The tests check never passes on zero tests failing without the change;
the reviewer requests changes on a visible change with no end-to-end
spec; the coder and planner prompts say so too.
- common::waiting_line gives the run page and the description one line on
what the pull request waits on; the gateway serves it with the preview.
* Failures are read from their report, checks are named by the job that covers the change, outside pages are probed
- common::e2e::failure_read: a failed end-to-end check is read from the
e2e workflow's comment on the pull request, its annotations, then its
job log, before anything is said about it; "couldn't be read" only when
all are empty. Whether the change caused it comes from the same check on
the base branch and the specs the change touched. The preview state
records each failure, the description says it, and a line claiming an
unread log is dropped while a report exists.
- common::ci_cover maps the changed paths to the jobs that run on them
(paths filters, branches, working-directory). "How to check" and Open
items come from that mapping; a check command aimed at a folder the
change doesn't touch is dropped, and "no CI job covers this change" is
said when none does.
- common::e2e::probe and the coder's probe_page tool: an outside page is
loaded with Playwright in the sandbox and its test ids and JSON fields
recorded under .coderhelm/probes/. The review requests changes on a new
or changed e2e file whose selectors or fields on an outside origin no
probe observed.
* Descriptions without repeats or deploy maps; no stand-in keys; squash churn
Every pull request description passes common::description_lint where it
is written: a repeated section keeps its newest copy, lines listing
several deploy workflows go, and an empty "who this affects" goes.
Commit subjects never carry a stand-in key. Every mark-ready path
squashes fix-round churn (more than five commits); squash_branch still
refuses a branch with a person's commits.
* Descriptions are Problem, Changes, Risk, Verification; settled items go; squash into a few commits
The description is laid out as Problem, Changes, Needed from you (only
when a person must act), Risk and Verification, two or three lines each,
rebuilt from the head's facts. Verification holds the waiting line, the
preview link, the screenshots and how to check. pr_body::defects checks
the order, the line counts and that no section is said twice.
pr_facts::settled drops an open or unverified item once every check of
the kind it names passed on the head, and an item CI closes once all
checks passed: the evidence decides, not the wording.
The final squash keeps a few logical commits: the first commit's subject
with the run's key, then one per run of review fixes, check fixes or
follow-ups. A branch with a merge of the base becomes one commit; one
with a person's commit is never rewritten; the ref moves only if nobody
pushed since it was read.
* Format the incident module list after the merge
* A missing end-to-end spec is CoderHelm's bounded wait, never a person's hold (with main's human-only rule)
* Answers on the ticket are decisions in every run; related tickets are checked before ready (#744)
* Web changes are proven on their preview before they are called ready
A web pull request was marked ready with its preview deploy and preview
end-to-end checks skipped (they skip drafts and run on a label), listed
as "skipped (its conditions left this PR out)" next to passing unit tests,
with no screenshot, "npm test" as the way to check it, and a tests check
that passed on 0 of 6 changed tests failing without the change.
- common::preview reads the repository's workflow files (on: events,
paths, branches, types, and each job's if: labels) into the preview and
end-to-end jobs that cover the change, the labels that start them (the
test map's areas first, never a shared environment's label) and which
skip drafts; it also decides from the paths and the tree whether a
visible change needs an end-to-end spec, the pages to capture, the
capture script and the real "How to check" commands.
- worker::preview starts the preview (labels, a push when the workflow
reads labels only on one), reads its checks and address, captures the
changed pages at desktop and phone width in the sandbox and keeps them
on refs/coderhelm/screenshots; the PR watch does it for finished runs.
- The ready decision marks a draft ready for preview checks that skip
drafts and waits on them; a failed preview or a visible change with no
end-to-end spec holds it.
- A skipped check that covers the change is a gap in the description,
never evidence; the description shows the preview, its checks and the
captured pages.
- The tests check never passes on zero tests failing without the change;
the reviewer requests changes on a visible change with no end-to-end
spec; the coder and planner prompts say so too.
- common::waiting_line gives the run page and the description one line on
what the pull request waits on; the gateway serves it with the preview.
* Failures are read from their report, checks are named by the job that covers the change, outside pages are probed
- common::e2e::failure_read: a failed end-to-end check is read from the
e2e workflow's comment on the pull request, its annotations, then its
job log, before anything is said about it; "couldn't be read" only when
all are empty. Whether the change caused it comes from the same check on
the base branch and the specs the change touched. The preview state
records each failure, the description says it, and a line claiming an
unread log is dropped while a report exists.
- common::ci_cover maps the changed paths to the jobs that run on them
(paths filters, branches, working-directory). "How to check" and Open
items come from that mapping; a check command aimed at a folder the
change doesn't touch is dropped, and "no CI job covers this change" is
said when none does.
- common::e2e::probe and the coder's probe_page tool: an outside page is
loaded with Playwright in the sandbox and its test ids and JSON fields
recorded under .coderhelm/probes/. The review requests changes on a new
or changed e2e file whose selectors or fields on an outside origin no
probe observed.
* Answers on the ticket are decisions in every run; related tickets are checked before ready
Every answer and instruction people wrote on the ticket counts in every
run on it, whichever run handled it, and a description never lists an
answered item as pending. The Jira app sends the ticket's linked tickets;
their criteria reach the plan, and before the pull request is called
ready each one, and each address a pull request closed in favor of it
moved, is checked or listed as not covered with why.
* Pin the dashboard for the November 17 release (#750)
* The coder plans and builds the smallest change the ticket asks for (#742)
* Web changes are proven on their preview before they are called ready
A web pull request was marked ready with its preview deploy and preview
end-to-end checks skipped (they skip drafts and run on a label), listed
as "skipped (its conditions left this PR out)" next to passing unit tests,
with no screenshot, "npm test" as the way to check it, and a tests check
that passed on 0 of 6 changed tests failing without the change.
- common::preview reads the repository's workflow files (on: events,
paths, branches, types, and each job's if: labels) into the preview and
end-to-end jobs that cover the change, the labels that start them (the
test map's areas first, never a shared environment's label) and which
skip drafts; it also decides from the paths and the tree whether a
visible change needs an end-to-end spec, the pages to capture, the
capture script and the real "How to check" commands.
- worker::preview starts the preview (labels, a push when the workflow
reads labels only on one), reads its checks and address, captures the
changed pages at desktop and phone width in the sandbox and keeps them
on refs/coderhelm/screenshots; the PR watch does it for finished runs.
- The ready decision marks a draft ready for preview checks that skip
drafts and waits on them; a failed preview or a visible change with no
end-to-end spec holds it.
- A skipped check that covers the change is a gap in the description,
never evidence; the description shows the preview, its checks and the
captured pages.
- The tests check never passes on zero tests failing without the change;
the reviewer requests changes on a visible change with no end-to-end
spec; the coder and planner prompts say so too.
- common::waiting_line gives the run page and the description one line on
what the pull request waits on; the gateway serves it with the preview.
* Failures are read from their report, checks are named by the job that covers the change, outside pages are probed
- common::e2e::failure_read: a failed end-to-end check is read from the
e2e workflow's comment on the pull request, its annotations, then its
job log, before anything is said about it; "couldn't be read" only when
all are empty. Whether the change caused it comes from the same check on
the base branch and the specs the change touched. The preview state
records each failure, the description says it, and a line claiming an
unread log is dropped while a report exists.
- common::ci_cover maps the changed paths to the jobs that run on them
(paths filters, branches, working-directory). "How to check" and Open
items come from that mapping; a check command aimed at a folder the
change doesn't touch is dropped, and "no CI job covers this change" is
said when none does.
- common::e2e::probe and the coder's probe_page tool: an outside page is
loaded with Playwright in the sandbox and its test ids and JSON fields
recorded under .coderhelm/probes/. The review requests changes on a new
or changed e2e file whose selectors or fields on an outside origin no
probe observed.
* The coder plans, builds and is reviewed as the smallest change the ticket asks for
Explore before planning (the ticket's own names are searched and handed to
the planner), five required plan sections (Reuse, Must not change, Measure
first, Smallest change, Proof) with a gate that sends back parallel
structures, widening the ticket doesn't ask for, unmeasured outside pages
and test-for-product flips; a coder guard that needs a search and a reuse
list before the first write and refuses a twin of an existing map or
helper; a diff check after the build and in the review for parallel
structures, deletes or overwrites where the base only added, log level
changes, unasked reporting, oversized tests and invented payloads; and
data rules that ask for skip reporting only when the ticket does.
* Reused helpers state what they do to stored rows; the test environment is installed once per run
The plan check reads each helper named under Reuse and calls it insert
only or replacing (a DELETE, ON CONFLICT DO UPDATE, a delete then an
insert, a relation .set). A replacing helper the plan doesn't say replaces,
or one reused on a path that only inserts today when the ticket asks for no
replacement, sends the plan back.
The first round reads how the repository's CI installs and runs its tests,
records it on the run, and every later sandbox build of every round and the
proof step restores the cached install instead of installing again. The
coder is told the environment is ready and how the tests run.
* Pin the dashboard for the November 17 coder release (#751)
* Replies are one short line: no echo, no header, no self-link (#752)
* Replies are one short line: no echo, no header, no self-link
A person wrote "@CoderHelm rebase with main" and got back a quote of
that comment, an "@name, replying to your comment" header, a second
@-mention, "you asked for a rebase with main:", two clauses on how the
merge was done, and a link to the pull request the reply sat on.
Every comment now passes the thread rules before it is posted
(comment_style::tidy and lint_on, in the conversation layer, review
thread replies, formal reviews and the person-lines note): no
"replying to" header; a quote only when the comment answered is not
the newest, never with a header; one @-mention of a person at most;
never a link to the thread itself; never the request said back.
The templates say it at their source: a branch update is one line
("Merged main in (15401ad).", a reason only when a rebase was asked),
posted as written with no model rewrite; callers no longer prefix
"@author"; ticket replies, the CoderHelm answers note, the lessons
reply, the re-approval notice and the repo move drop their echoes and
self-links. The reply and judge prompts ask for one plain line.
Replay: incident cb_terse_reply.
* Format the incident files
* Fix rounds agree, proof answers are judged, tests run for the change (#753)
* Fix rounds agree, answers reach the proof judge, tests run for the change
- A planned-work round no longer builds again what a review commit on the
pull request took out; when an acceptance criterion asks for it, the
ticket wins and the item carries the criterion (round_agree). Plain Jira
acceptance criteria are read (stop_judge::acceptance).
- A proof fix round that answered gaps by looking (lookups, a check run) is
judged again on the same head instead of reusing the result from before
the round (proof::round_answered, CheckRecord::answered).
- The test environment is the CI job whose tests run for the plan's files,
not the first workflow's job (test_env::from_workflows_for); a run's
record for another package is worked out again.
Incidents: cm_test_env_for_the_change, cn_proof_answer_judged,
co_rounds_agree.
* Format the incident files
* Pin the dashboard for the November 17 replies release (#756)
* End-to-end selectors come from a live probe; untaken test branches are labelled; writes carry only the fix's lines (#755)
* End-to-end selectors come from a live probe; untaken test branches are labelled; writes carry only the fix's lines
A vendor-portal spec's registration-open branch was written from test-id
strings found in the vendor's script bundle after the shell refused a
Playwright probe. Only the closed branch ever ran, and a later run kept it
and re-wrapped lines no formatter checks. The review's probe gate read only
added, single-line getByTestId calls and ran only in the reviewer.
- common::e2e::probe reads wrapped and pattern ids, holds kept ids too,
treats framed pages as outside, and records states and clicks.
- common::e2e::branches finds test branches on page state and which arm a
report or a probe would take.
- common::diff_shape tells and puts back formatting-only hunks.
- worker::live_guard refuses coder writes with unprobed outside ids or
only formatting, commits probe records, and feeds the habits check.
* Format the incident files
* WAF alarm runs read their evidence; a missing AWS read is one install item (#757)
* WAF alarm runs read their evidence; a missing AWS read is one install item
A run for a WAF signature-drift alarm ended needs_input asking a person to
grant the team's read-only role WAF and Athena access. The role's setup
script never added any WAF read, and logs held in S3 were never read.
- The setup script adds coderhelm-read-waf: wafv2 Get/List, read-only
Athena queries in the WAF log workgroups over the Glue tables on
aws-waf-logs-* buckets, s3:PutObject only under the workgroup's results
prefix, everything else denied. waf_update_line is the one-line
CloudShell update for an existing role.
- alarm_evidence reads a web ACL's S3 logs through Athena: one bounded
query (last three hours, the alarm's rule), keeping only JA4, JA3, user
agent, accept language, path, cookie presence and counts.
- A refused read is recorded once per account (aws_role_reads) and shown
as the "AWS role reads" setup check with the update line; the run names
it in one line and goes on.
- The stop judge turns an access ask or a hold on the role's reads into a
proceed, the hand-back list no longer carries it, and an access question
shows no default that can't happen and gets no deadline.
- Incident bo replays the run; self-host docs updated.
* Format the incident files
* Pin the dashboard for the November 17 live-page release (#759)
* A red check is reproduced against the base branch before a revert or a blame (#754)
* A red check is reproduced against the base branch before a revert or a blame
Before a CI fix round the failure is read from its own report (test, error,
screenshot, report link) and the failing test runs with the head's test code
against the base branch's deployment and the pull request's preview; both
results and each failing check's result on the base head are kept on the run.
A revert of CoderHelm's own work needs a record showing the change caused the
failure. Blame and "couldn't confirm" sentences are held against the record.
The description's CI failing section and revert lines are rebuilt for the head.
* Format the incident files
* The reviewer reads the merge base, settles probes itself, reads red checks test by test (#758)
A re-review after an approval or a review reads only the pull request's own
change since then; files a base merge brought in are left out, and a finding
calling a file outside the merge-base diff unrelated is dropped.
A passing end-to-end run on the head whose report shows the test ids is a
probe record; for what is still unobserved the reviewer runs the probe
itself and decides from its record.
A red check is read test by test from each failing test's own error, tests
in touched specs first, never as the base branch's by its name. Blame and
revert sentences the comparison doesn't back are held.
On CoderHelm's own pull request a request for a test always goes to the
coder, with how to test a script (stubs on PATH, fixtures).
* Pin the dashboard for the November 17 reviewer release (#763)
* A CI fix is pushed only after its own checks pass, and red CI stops named instead of rolling back (#760)
* A red check is reproduced against the base branch before a revert or a blame
Before a CI fix round the failure is read from its own report (test, error,
screenshot, report link) and the failing test runs with the head's test code
against the base branch's deployment and the pull request's preview; both
results and each failing check's result on the base head are kept on the run.
A revert of CoderHelm's own work needs a record showing the change caused the
failure. Blame and "couldn't confirm" sentences are held against the record.
The description's CI failing section and revert lines are rebuilt for the head.
* Format the incident files
* A CI fix is pushed only after its own checks pass, and red CI stops named instead of rolling back
- run_checks runs the owning package's own scripts: its whole unit suite
when a non-test file changed, only the touched test files otherwise, and
its type check and lint. The test line taken from the first workflow
(another package's suite with --passWithNoTests) no longer stands in.
- A CI fix round's commit is held when its checks are red or never ran on
its last edit, and when it removes a definition a test still names; one
the sandbox couldn't check is pushed with an Unverified: line and what ran.
- Every round's commit message is checked against its diff and rewritten
from it when they disagree.
- Two pushed fixes per failing test, kept on the run; then the rounds stop
with the test and its error named. Red checks never roll a ticket run's
branch back to an older green head or take a planned task out; only a
dependency run's newest set of bumps comes out.
- An unreadable CI log gets the package's commands to reproduce it locally.
- The habits check sends back fixture ids invented while the run looked up
real ones, and test cases that differ only in their values.
- Incidents ga and gb replay both pull requests; docs/coder-loop.md step 7.
* Keep a blank line before the commit and push step
* Put commit and push before rounds agree in the coder loop page
* Scope is decided once and held; the description describes the head (#762)
* A red check is reproduced against the base branch before a revert or a blame
Before a CI fix round the failure is read from its own report (test, error,
screenshot, report link) and the failing test runs with the head's test code
against the base branch's deployment and the pull request's preview; both
results and each failing check's result on the base head are kept on the run.
A revert of CoderHelm's own work needs a record showing the change caused the
failure. Blame and "couldn't confirm" sentences are held against the record.
The description's CI failing section and revert lines are rebuilt for the head.
* Format the incident files
* A CI fix is pushed only after its own checks pass, and red CI stops named instead of rolling back
- run_checks runs the owning package's own scripts: its whole unit suite
when a non-test file changed, only the touched test files otherwise, and
its type check and lint. The test line taken from the first workflow
(another package's suite with --passWithNoTests) no longer stands in.
- A CI fix round's commit is held when its checks are red or never ran on
its last edit, and when it removes a definition a test still names; one
the sandbox couldn't check is pushed with an Unverified: line and what ran.
- Every round's commit message is checked against its diff and rewritten
from it when they disagree.
- Two pushed fixes per failing test, kept on the run; then the rounds stop
with the test and its error named. Red checks never roll a ticket run's
branch back to an older green head or take a planned task out; only a
dependency run's newest set of bumps comes out.
- An unreadable CI log gets the package's commands to reproduce it locally.
- The habits check sends back fixture ids invented while the run looked up
real ones, and test cases that differ only in their values.
- Incidents ga and gb replay both pull requests; docs/coder-loop.md step 7.
* Scope is decided once and held; the description describes the head
A pull request's path-page work went in, came out, and its tests came
back; its plan left three product questions open and its description
said the path pages were out of scope while the diff changed them.
- common::scope_ledger: the ticket's acceptance criteria (in scope) and
the plan's Out of scope lines, each with a reason and the names, paths
or routes that show it; open questions decided with their default.
- Plan gate: design.md must have Out of scope; open questions, items
without a reason, items a criterion asks for, tasks naming an
out-of-scope item and open-ended tasks go back. The ledger is written
when the plan is generated, before any code, and never rewritten.
- Every round: the tests and scope check sends back out-of-scope items
the diff brings in, tests included; planned-work rounds skip them; a
Scope change line must cite a criterion or a person's comment.
- Description, on every build: one Out of scope line from the ledger;
question and history sections go; sentences the diff refutes go; the
notes fit a length scaled to the changed code. defects() fails a body
that asks an open product question.
- Incidents sl_scope_decided_once and sm_description_of_the_head;
docs/coder-loop.md steps 8 and 9.
* Keep a blank line before the commit and push step
* Put commit and push before rounds agree in the coder loop page
* Run the scope ledger after the live page facts; doc steps follow commit and push
* CoderHelm's reviews and threads stay tidy between reviews (#761)
A review body, a settled thread and a merged pull request's reviews were
cleaned up only when CoderHelm posted a new review. Now the same cleanup
runs on a push, when checks finish, on a merge or a close, and on the
review sweep:
- a review body for an older commit than the head becomes one line
(verdict, the commit it reviewed, why); a request for changes keeps its
reasons until the next review replaces it;
- on a merge or a close every body becomes one line and CoderHelm's
resolved threads are hidden;
- a failing-check thread resolves once the head's checks pass, a thread
whose file or lines left the diff resolves, and CoderHelm's comments in
them are hidden;
- a new review keeps only its verdict, why and what holds the merge in
sight; the overview, file table, risk, FYI, verification, tests and
earlier comments fold under one collapsed block.
Only CoderHelm's own reviews, comments and threads are changed, never a
thread a person opened or one with a person's reply waiting, and nothing
is posted to announce it.
* Pin the dashboard for the November 17 coder-gates release (#767)
* No second run on a ticket whose pull request already merged
On one team's app, watched over seven months, duplicate runs made up
most of CoderHelm's unmerged pull requests. A retry, a ticket edit, or a
run started while the first pull request had merged into an integration
branch rebuilt the same change from nothing.
Before a fresh run on a person's ticket (a Jira key or a GitHub issue)
does any work, it now checks the ticket's pull requests: the ones its
earlier runs opened, and any whose title, branch or description names
the ticket, by any author and into any base branch. CoderHelm already
reads these for the ticket's history. When one merged, the run stops
before a repository is picked or a model is called. The run page and the
ticket say which pull request merged, into which branch and when, and
how to run the ticket anyway. The run ends waiting on a person, with
`stop_kind: already_merged`.
A person runs the ticket anyway by pressing Retry on the stopped run,
reopening the Jira ticket, or replying on the ticket with what is still
to do. A run started that way is recorded, so its retries and later runs
on the ticket aren't stopped by the same merge; a newer merge stops them
again. CoderHelm's own work (alerts, log findings, flaky tests, security
fixes, plan tasks) is never stopped, because the same finding can come
back after its fix merged.
The trigger gate:
- A ticket edit after such a stop starts nothing, so the ticket doesn't
collect one stop after another. Reopening it, or Retry, starts the
work.
- After 3 failed runs in a row, an event that leaves the ticket
unchanged starts no further run. A field or status change used to
start the same failing run every time. An edit, a reopen, Retry or a
command still start one.
Open pull requests that already do the work were handled before this
change and still are.
Deferred:
- Holding a run while the ticket's blocking links are open: the Jira app
doesn't send issue links yet, and what happens when a blocker closes
is a product decision.
- A ticket-level target-branch field: a target branch written in the
ticket text is already honoured. A field needs the Jira app to send
custom fields and a decision on which field to read.
* Merged PRs get the coverage verdict; covered tickets end as covered (review on #706)
* no-mistakes(review): Judge recent merged PRs together and keep partial note
* no-mistakes(review): Add merged_note to literals; skip unreadable old PRs
* Keep the partial-merge note on the run record for Retry and the PR's fix rounds
* no-mistakes(review): Retry drops stale merged note; fresh verdict owns it
* no-mistakes(review): Cut carried merged note wherever it sits
* An answer on the ticket keeps the merged check and the partial note (review on #706)
* One rule carries the partial note into Retry and answers, never after a merge
---------
Co-authored-by: Shoyu <shoyu@hmdnyc-v29dlvcg.tail1a3f79.ts.net>
Co-authored-by: Nam Bok Rodriguez <nambok@gmail.com>
nambok
added a commit
that referenced
this pull request
Nov 19, 2026
… quote its run (#705) * Wait for the deploy label's workflow before a draft leaves draft, and quote its run A repository's deploy label (the reviewer setting that starts its own preview deploy or end-to-end runs) was only a wait before auto-merge. A pull request was marked ready while the labelled workflow still ran, its description never said how that workflow ended, and a workflow that takes its label off when its run ends never ran again after a fix round pushed a new commit. common::deploy_label finds the workflows the label starts (their jobs ask for it, read with workflow_gate) and their latest run on the head: - The ready decision waits while one runs, or for up to three minutes after the label was added when its run hasn't started yet. A failed run is failing CI, which the run's CI fix loop already takes; it is named as a hold only when no failing check says it (a workflow that failed to start). - Verification shows each run with its conclusion and a link to it, kept in sight when the CI checks are grouped, and Full test evidence lists them. When the draft is marked ready after the run, the description is rebuilt so it quotes the finished run. - A label that came off is put back on a new head, once: only on a pull request CoderHelm labelled before, never twice on one head, never when a run of the workflow already ran on it. The head is kept on the merge gate's record, which the opening of the pull request, the ready decision and the merge gate all write, so the merge gate no longer starts a second deploy of a head that was already deployed. * no-mistakes(review): Harden deploy-label gate reads, holds and put-back * no-mistakes(review): Prefer real deploy runs; gate keeps person-removed label off * no-mistakes(review): Send failed deploy runs to the CI fix loop * no-mistakes(review): Feed hidden deploy-run failures to the CI fix loop * no-mistakes(review): Give each CI failure log its own share of budget * no-mistakes(lint): Format deploy-label code and fix worker clippy errors * A description gets a final review, follows the repository's template, and a run delivers its change whatever outside work it needs (#703) * A description gets a final review before it is posted, follows the repository's template, and a run delivers its change whatever outside work it needs A pull request description showed six checks as "still running when this was written" and never changed them, asked a person for deploy credentials in a repository that deploys staging from a label CoderHelm adds, said the file to read first and the way back twice each, closed its review focus with "nothing is out of the ordinary", named a page by its raw id, and listed running and did-not-run checks on one line. The repository's template only guided the first draft. - Final review in the one save (common::pr_review): a running check reads Running and is never a result; nothing the gate does not let through reaches a person; nothing said twice; no filler; no raw id beside a name; running and did-not-run said apart. - Running checks render as Running, the conclusion says they are still running, and the stamp marks the description for a rebuild until they end, so the checks step, the watch and the end of the run replace them. - The reviewer guide gives way to the lead (it said Read first and Rollback again); its own lines keep running apart from did-not-run. - A staging deploy the repository lets CoderHelm start (a dispatchable or labelled workflow) is CoderHelm's step (outside_work::own_startable). - The repository's pull request template is the visible structure: its headings in order, filled with CoderHelm's content (common::pr_template, pr_body::render_templated); the rebuild reads it, cached per repository. - A plan with code is implemented and its pull request opened whatever outside work it needs (route_for_plan), and a run whose pull request is open ends completed, with person-only items listed once under Needed from you and on the run page. - Incident case bl replays the posted description with neutral names. * A deploy CoderHelm can start is found, started and recorded, and feedback about outside work keeps the code change - Detection: a staging deploy job a pull request label starts, or a dispatchable staging workflow, is a deploy route even when it is not the CMS's; label conditions are read with or without spaces; a run line that runs a package deploy script counts. A production-only route is never taken for staging. - The gate is told: classify_with sets person_gate::Context::can_deploy from the repository's routes, and a deploy CoderHelm can start and has not tried is never a person's credential item (an attempt whose own cause is a listed reason still is). The executor classifies with it. - Executed, not reworded: next_action gives the moved step its route's action (label or dispatch); record_end records the run that ended on the step, which the resume saves on the run. - Feedback: a person saying part of the fix is outside the code keeps the open pull request and its code when the plan coded (route_for_feedback), records the outside part on the run's decision and lists it on the pull request; only a pull request with no code to keep is closed as before. - Incident bl: three cases for the above. * Keep every event path inside its team (#704) * Keep every event path inside its team An audit of inbound webhooks, live streams, queues, notifications, team knowledge and caches found four keys that named a shared thing instead of the team. Each is proven by a test that failed before the fix. - Slack workspace and Teams webhook links are claimed by one team at a time (flag::claim_chat); another team's link is refused, an unlink only drops the caller's own, and inbound routing requires the team's settings to still name the key. - Run page GitHub check reads are cached per installation (read_key), so a same-named repository never gets another installation's cached checks. - Composed replies are cached by the full prompt they were written from, so two Jira sites sharing a ticket key and comment id never share one. - Run event rows carry team_id; every read keeps only the asking team's rows, all through common::run_events. - The plan chat stream token is scoped to its stream, like the brain's. Incident case bm_teams_never_cross scans for new inbound routes, process-wide caches and direct events table access that don't say how they stay in their team. * Keep the plain session token builder for tests only The plan chat stream was its last caller outside tests; streams now use scoped tokens. * Key the PR template cache by installation, as every process-wide cache is * Read the installation through its accessor * Release: Atlassian as one connection, infrastructure findings that follow AWS, log findings that trace their repo, built-in team bases, lower model spend (#713) Combines #708, #709, #711, #710 and #712 into one change so CI runs once. * Pin the dashboard for the Atlassian, infrastructure findings and team bases release (#714) * A description built by an earlier writer is rebuilt after an upgrade (#715) * A description built by an earlier writer is rebuilt after an upgrade The description stamp named the head, the digest of the checked text and running checks, never the writer that built it, so a pull request opened before an upgrade kept its old layout and wording on an unchanged head. - The stamp carries the writer version (description::WRITER, now 2). A stamp without a version, or with another, is not current. Old stamps still parse. - The pull request watch sweep catches up open pull requests CoderHelm opened, whatever the age of their run: up to 3 per team and 15 per sweep, inside the sweep's GitHub budget, through the one rebuild (reconcile_run, final review in save). Each is marked on its run (description_writer) so it is read once per writer version. - A description with no CoderHelm stamp, or whose checked text a person changed, is left as it is. - Incident bn replays an old-layout description on an unchanged head. * The catch-up builds a description wholly CoderHelm's from the facts alone An older description had no lead or reviewer-block markers, so its rebuild kept the old lines (frozen "still running" rows, "Look first", "Roll back") in a fold. When the stamp's digest still matches, nothing in the body is a person's: the catch-up (description::catch_up_run) now drops the old body and renders it from the facts of the head, keeping only a line that closes an issue. The build checks the body again as it reads it, so an edit made since the sweep looked is never written over. * Pin the dashboard for the PR description catch-up release (#716) * Release: plans survive a cut revision; old security pull request descriptions rebuilt fresh (#720) Combines #718 and #717 so CI runs once. * Pin the dashboard for the description review and team isolation release (#721) * Updater retries by itself when AWS throttles an update before it changes anything (#722) A throttled DescribeChangeSet during the deploy role check came back as "couldn't check", failed the update and told the admin to press Update again. Throttling now never counts as a refusal: every AWS client uses botocore's adaptive retry mode, each step before the change set runs is tried again with backoff and jitter, and the update (or the Update press) keeps waiting as "AWS is busy, retrying (attempt n)". Only after 10 minutes does it fail, in words that ask nothing of anyone, and it starts again by itself 30 minutes later unless an admin cancels it (DELETE /api/system/update). The model check stays pending, never refused, while AWS is busy. * Pin the dashboard for the November 16 release (#723) * Own review findings answered with proof close; a check cut short by time continues (#726) A review-fix round that answered a finding with proof and pushed nothing was never read by a review: the parked round's end marked the pull request ready and completed, the completion guard reran the checks (which never review the head), and the next look refused another round on the same head and held the draft for a person. A check the step was too short to start was counted as a block and could end in that same hold. - A round that pushed nothing, or used every step, goes back to a review of the same head; the reviewer is given the round's account and the rule for judging proof. A finished run whose last round no review read is sent back to that review on the next look of the ready sweep or the pull request watch, so stuck runs recover by themselves. - A command, run_checks or codegen a step is too short to start is owed: the pass continues in a fresh step that runs it first. A round cut short by time is neither a stall nor a block in the ledger. - No CoderHelm limit holds a draft for a person: what is left after every approach is listed as CoderHelm's note, the pull request goes ready, and CoderHelm's verdict is kept so nothing merges over it. Passing moments (a race, a read that failed) are waits. - Incident bt reproduces the case. * Relay lists every install admin; unconfirmed sign-ups get set up; true send errors (#727) The relay refused set-up and forgot-password emails (inviter_not_admin): only the config's admins were ever listed as relay admins, so the owner and other admins, copied-over ones included, could not vouch. The install now names all its admins to a new signed /hybrid/email/admins sync, after role changes and whenever the relay refuses an admin, then retries. An unconfirmed Cognito sign-up counts as no account: forgot-password and the Members page send the set-up email, and signing up again replaces it. Refused sends answer with the reason. The custom-message Lambda reads SES v2's TemplateContent. * Chat: delete several chats at once (#728) POST /api/brain/threads/delete takes up to 100 ids and deletes each one the caller started, in their own team, with the same checks as the single delete (now shared in delete_verdict). Someone else's private chat or another team's id answers "No such chat."; a teammate's shared chat is refused. Each id gets its own result, and one failure stops nothing else. * GitHub sign-in lands on the person's one record; copied invites get sent from the install (#730) - A GitHub-only record (no email) next to the same person's record by email is folded into it at their GitHub sign-in: the higher built-in role stays and the GitHub-only record is removed. The GitHub email is never written onto a second record on the same team. - The GitHub id lookup reads every record instead of one at random, so an install's own record (or, hosted, the team someone was added to) wins. - An invite dated before the organization was made on the install and never sent from it is offered by forgot-password and the bulk set-up email; sending it restarts its 30 days. - A refused password sign-in is logged by cause; no sign-in here is info. Depends on #727. * CI: skip the Rust steps when a pull request changes nothing Rust reads (#724) Rust (clippy) and Rust (tests) still run on every pull request and report, but a changed-files check against the merge base skips their steps when no file the workspace builds, embeds or scans changed (a dashboard pin in selfhost/versions.json). The list lives in .github/scripts/rust_affected.py with a unit test; anything uncertain runs everything. * Pin the dashboard for the November 16 afternoon release (#731) * Chat answers "what needs me" from every source in one call (#729) work_needs_me gathers what waits on the asker, side by side and time-bounded: run questions (with their options), runs waiting on an outside change, Coderhelm's open pull requests on their own work, tool calls held for an admin, Jira tickets assigned to them or mentioning them unanswered, and GitHub review requests, their own pull requests with changes asked for or failing checks, and unanswered mentions. Grouped by urgency, ranked by priority and age, stale tickets left out; a source that couldn't be read is named. Any wording routes there, and an answer that skipped it is sent back once. The Jira app gets a by-person read. Data source steps now say what they read instead of "api get". * Coder bash: read-only curl/wget run as page fetches, chains and history reads run as tools, commands run after the install (#732) - curl/wget GET or HEAD run through the page check's safety rules and return the status, every header and part of the body; requests that send data, upload, authenticate, write a file or use a proxy are refused with the reason and the read-only form. - Reads chained with ; && || run as their tools in order; git log, git show and git blame run as github_history or a read at a ref; sandbox command chains run as one build with each part asked of the gate; a refused part of a chain is named with the parts that can run. - Sandbox commands run after the repository's install (corepack enable only when the command installs on its own). Exit 127 records the missing program and the routes that work, and a later command that needs it gets that note without another build. - Refused and failed tool events carry their message to the run page while the step runs; the run log line names the actual refusal. * One short status comment per pull request and ticket (#736) Every status and note CoderHelm writes now goes into the thread's one status comment, edited in place. No "This replaces what I wrote", no History block, no new comment per update. A status that needs nothing from anyone is never posted; it stays on the run page and in the description. Earlier status comments are rewritten to one line and hidden as outdated on the next update, never deleted. Every comment passes comment_style::render and comment_style::lint before it is written: at most five lines, no template plurals, no pasted plan text, no deploy maps or workflow path dumps, no repeated sentences. One that still breaks the style is not posted. The person gate sends testing work (reading an end-to-end result, running a flow in browsers) back to CoderHelm. The outside-work and release notes carry only what a person must do, the release section lists only the deploys the release waits on, and an end-to-end run with a label route is started by its label first. The GitHub App manifest asks for Actions: write (workflow_dispatch); setup checks warns about it once when an older app lacks it, never fails. * CI: Rust tests can no longer hold the runner for an hour (#738) * CI: Rust tests can no longer hold the runner for an hour Five times since 13 November the Rust (tests) job lost its runner during the first cargo step and failed after 55 minutes with no log; reruns passed. That step built the whole workspace with full debug info (about 19 GB of target, close to 14 GB of compiler memory at four jobs) and then ran the suite. - The job builds with line-tables debug info: file:line stays in panics and backtraces, at about a third of the disk and build time. - The build is its own step, printing disk and memory every minute. - Every test step runs through cargo-nextest: each test in its own process, ended and failed under its own name after two minutes (services/.config/nextest.toml). Each step has a time limit as a backstop. - q_run_ceiling built 100,000 DynamoDB clients in one test (a minute of CPU, the slowest test in the suite); it now builds one per scenario. * CI: say what the runner measured: memory is the tight resource, not disk * Pin the dashboard for the November 16 evening release (#740) * Held drafts are decided again on the first sweep after a release (#733) A release that changed how a held draft is finished never reached the draft it was for. The draft sweep re-decides a hold only once it is an hour old, so the first sweep after the release only peeked; the next one was skipped for GitHub's budget with "it looks again in about 1 min", and nothing looked until the next scheduled sweep; the pull request watch spent its hourly cap on merged pull requests and never reached the draft. - A hold records the version of the code that decided it. The sweep decides a hold other code wrote on its first pass, decisions before peeks. - A sweep the budget skipped runs again once the budget refills: one delayed review_sweep per gap, claimed so workers send only one. - The pull request watch looks at held drafts first. - Incident bu reproduces the case. * End-to-end results are read, never handed to a person for a permission (#735) * End-to-end results are read, never handed to a person for a permission A step that only had to read the pull request's end-to-end results was routed to a workflow_dispatch start. The installation's token lacked Actions: write, so the start was skipped before any request was sent, and the step's words ("not allowed to start workflows") were read by the person gate as "a permission only a person grants": two "before merge" items for a repository admin, with no refusal from GitHub behind them. A quoted page text in the step was also read as a workflow name. - github_grants::Denial: the only way to claim a permission, built from a real 403/404 on a named API (never a budget hold, rate limit or timeout), naming the API and the permission it needs. - person_gate: Reason::Grant only when grant_backed; a missing connection or token is a credential, not a permission. - e2e_reads: the head's end-to-end result from check runs and their annotations, workflow runs, the end-to-end PR comment and the report it links to (under the page check's host rules). - outside_exec: without Actions: write, the label route first, then the read routes; a read step left on the permission is one install-level line and stays CoderHelm's; only workflow names are read as runs. - Setup checks: github_workflow_starts names Actions: write once for the install (skip, never warn or fail; the installer still doesn't ask). * Collapse the report-link condition for clippy * Setup checks: the permissions check names the optional Actions: write as main now asks Main lists Actions: write as an optional permission (a warning for the install); the starting-workflows line stays a skip, and nothing reaches a pull request. * Pin the dashboard for the November 16 night release (#745) * No CoderHelm limit hands a pull request to a person (#739) Only a reason on the human-only list keeps a draft for a person. Four paths still did it over CoderHelm's own limits: a security fix whose CI stayed red after its fix rounds, a wait unchanged for two hours, lines in the description (security items, unfinished planned work, a failed check, review findings), and GitHub refusing to mark a pull request ready. - A hold reason names its human-only reason (Reason::person); only those make a hold a person's. Every other reason is CoderHelm's note on a pull request that goes ready, once its attempts are spent. - A stalled wait is CoderHelm's next action: its checks run on the head again in a fresh step, twice, then its note. - A security fix whose CI stays red after every set of bumps that could come out did is completed and ready, with the failing checks noted. - Dependency fixes: a scope's packages on one minor line are a family found from the lockfile when no registry record names their source, so a head that raises one alone fails the set. Tests cover the type check added when CI runs none and the major-override evidence section. - Incidents bv and bw reproduce the cases; older tests that encoded a person's hold for these reasons now read the reasons as found and assert the note. * Incident cases are found by the build, one page each: adding one edits nothing shared (#747) Each case added a mod line to incidents/mod.rs and a row to the docs/incidents.md table, so open pull requests that each added a case always conflicted. worker/build.rs now lists incidents/*.rs and writes the mod lines (and CASES) to an include; each case has its own page in docs/incidents/; a test pairs cases with pages; a script prints the table; CI checks the case files' formatting by name, since cargo fmt doesn't follow the include. * Alerts: an honest card for alarms no rule names; WAF evidence for alert rule runs (#741) * Alerts: an alarm no rule names is investigated and fixed, not only posted A CloudWatch alarm that no rule on a fix route named was posted as "Notification only" even when its cause lives in code a team's repo defines. Now it starts a run: the worker picks the repo from where the alarm's names appear in the code, reads the alarm's evidence (for AWS WAF alarms, the rule's sampled requests and the web ACL's logs) and opens a fix there. Only a notify route, the route's notify_alarms, or an alarm with no cause in code (billing, quotas, Trusted Advisor, Health, a host's system check) stays a post. The read-only role templates and the boundary gain the WAF reads (ListWebACLs, GetSampledRequests, GetLoggingConfiguration); the boundary reaches an install when an AWS admin applies the access stack. * Alerts: keep unnamed alarms post-only; WAF evidence for rule runs Alarms no rule names stay post-only at no token cost, as the routing is designed: the investigation default, its rule and the no_code_cause outcome are removed. The card says so honestly ("No rule on this route names this alarm") and links to the route settings to add one. A run an alert rule starts for an AWS WAF alarm reads the rule's sampled requests and the web ACL's logs before planning. The wafv2 reads stay in the role templates, ABILITIES and the boundary. native-sim.json is regenerated with deploy-role-sim.py --native (the script now maps EC2 resources); AWS's registry lists ECR image reads for Lambda functions, recorded as refusals on purpose since every function is a zip. * CoderHelm's earlier reviews get out of the way of its latest one (#746) * CoderHelm's earlier reviews get out of the way of its latest one When CoderHelm posts a review, each of its earlier reviews is rewritten to one line, its earlier inline comments in its own threads are hidden as outdated, its threads the new review no longer raises are resolved, and its own earlier request for changes is dismissed. Never a person's review, comment or thread, and never a thread where a person's reply is unanswered. The plan is pure (common::review_supersede); the conversation layer carries it out, skipping a step GitHub refuses with a log line. * The review guard lets the conversation layer collapse CoderHelm's own earlier reviews * A person's lines on a branch stay theirs; scope churn never becomes commits (#743) * A person's lines on a branch stay theirs; scope churn never becomes commits Every write CoderHelm commits is held against the commits people made on the branch: a part that puts back a line they removed or takes out one they added is not committed, and the pull request's one note says what was kept and asks. A round a person asked for lifts the hold. The revert after red checks puts back only CoderHelm's own changes, the build of the plan is bounded by the plan's files, and CoderHelm's own commits that change a file and put it back are folded away. * A round on the pull request never restores a planned file Audited runs restored a file the plan changes and rebuilt it from scratch, up to fourteen times in one run. In planned-work, proof and fix rounds, restore_file on a planned file is refused (the round edits what is on the branch); any other file is restored only to the pull request's base. * Web changes are proven on their preview before they are called ready (#734) * Web changes are proven on their preview before they are called ready A web pull request was marked ready with its preview deploy and preview end-to-end checks skipped (they skip drafts and run on a label), listed as "skipped (its conditions left this PR out)" next to passing unit tests, with no screenshot, "npm test" as the way to check it, and a tests check that passed on 0 of 6 changed tests failing without the change. - common::preview reads the repository's workflow files (on: events, paths, branches, types, and each job's if: labels) into the preview and end-to-end jobs that cover the change, the labels that start them (the test map's areas first, never a shared environment's label) and which skip drafts; it also decides from the paths and the tree whether a visible change needs an end-to-end spec, the pages to capture, the capture script and the real "How to check" commands. - worker::preview starts the preview (labels, a push when the workflow reads labels only on one), reads its checks and address, captures the changed pages at desktop and phone width in the sandbox and keeps them on refs/coderhelm/screenshots; the PR watch does it for finished runs. - The ready decision marks a draft ready for preview checks that skip drafts and waits on them; a failed preview or a visible change with no end-to-end spec holds it. - A skipped check that covers the change is a gap in the description, never evidence; the description shows the preview, its checks and the captured pages. - The tests check never passes on zero tests failing without the change; the reviewer requests changes on a visible change with no end-to-end spec; the coder and planner prompts say so too. - common::waiting_line gives the run page and the description one line on what the pull request waits on; the gateway serves it with the preview. * Failures are read from their report, checks are named by the job that covers the change, outside pages are probed - common::e2e::failure_read: a failed end-to-end check is read from the e2e workflow's comment on the pull request, its annotations, then its job log, before anything is said about it; "couldn't be read" only when all are empty. Whether the change caused it comes from the same check on the base branch and the specs the change touched. The preview state records each failure, the description says it, and a line claiming an unread log is dropped while a report exists. - common::ci_cover maps the changed paths to the jobs that run on them (paths filters, branches, working-directory). "How to check" and Open items come from that mapping; a check command aimed at a folder the change doesn't touch is dropped, and "no CI job covers this change" is said when none does. - common::e2e::probe and the coder's probe_page tool: an outside page is loaded with Playwright in the sandbox and its test ids and JSON fields recorded under .coderhelm/probes/. The review requests changes on a new or changed e2e file whose selectors or fields on an outside origin no probe observed. * A merge is followed through its deploy, whoever merged it (#748) A person merged one of CoderHelm's pull requests hours after closing its run by hand, and nothing followed the deploy: - The merge kept the run closed, and the pull request watch looked only at finished runs, so the merge commit's deploy was never watched. A merge CoderHelm made itself was watched; a person's was not. - The release steps armed when the pull request opened waited on another service's deploy: a workflow with a production job on merge to main and a path filter on that service's folder, which never runs for the change. Staging's deploy was not a step, and the v* tag that deploys production was never asked for. Now: - pr_watch: a merged pull request takes Act::WatchDeploy whatever the run's status (finished, merged by CoderHelm, or closed, cancelled or failed before a person merged it). The act watches the merge commit's deploy and follows the release. The sweep reads merged runs a person ended until their deploy is followed, so merges already missed are picked up; a closed pull request's outcome is looked at as soon as it is scored. - release_plan: workflows' push path filters are read. A deploy is the change's only when its workflow runs for the files the pull request changed, and a workflow named for its environment goes before one service's deploy. A release with no migration waits for staging's deploy, then production's by the repository's own path. - release_run: follow_merge re-derives the deploys at the merge commit and points an armed release at the right ones, keeping steps already done; a pull request with no release gets its deploys followed. A step waiting on a person's approval is said once in the pull request's one status comment. Incident bx covers both merges taking the same follow, the existing release re-pointed, and the catch-up. * Pin the dashboard for the November 16 late night release (#749) * Descriptions are Problem, Changes, Risk, Verification; settled items go; a few logical commits (#737) * Web changes are proven on their preview before they are called ready A web pull request was marked ready with its preview deploy and preview end-to-end checks skipped (they skip drafts and run on a label), listed as "skipped (its conditions left this PR out)" next to passing unit tests, with no screenshot, "npm test" as the way to check it, and a tests check that passed on 0 of 6 changed tests failing without the change. - common::preview reads the repository's workflow files (on: events, paths, branches, types, and each job's if: labels) into the preview and end-to-end jobs that cover the change, the labels that start them (the test map's areas first, never a shared environment's label) and which skip drafts; it also decides from the paths and the tree whether a visible change needs an end-to-end spec, the pages to capture, the capture script and the real "How to check" commands. - worker::preview starts the preview (labels, a push when the workflow reads labels only on one), reads its checks and address, captures the changed pages at desktop and phone width in the sandbox and keeps them on refs/coderhelm/screenshots; the PR watch does it for finished runs. - The ready decision marks a draft ready for preview checks that skip drafts and waits on them; a failed preview or a visible change with no end-to-end spec holds it. - A skipped check that covers the change is a gap in the description, never evidence; the description shows the preview, its checks and the captured pages. - The tests check never passes on zero tests failing without the change; the reviewer requests changes on a visible change with no end-to-end spec; the coder and planner prompts say so too. - common::waiting_line gives the run page and the description one line on what the pull request waits on; the gateway serves it with the preview. * Failures are read from their report, checks are named by the job that covers the change, outside pages are probed - common::e2e::failure_read: a failed end-to-end check is read from the e2e workflow's comment on the pull request, its annotations, then its job log, before anything is said about it; "couldn't be read" only when all are empty. Whether the change caused it comes from the same check on the base branch and the specs the change touched. The preview state records each failure, the description says it, and a line claiming an unread log is dropped while a report exists. - common::ci_cover maps the changed paths to the jobs that run on them (paths filters, branches, working-directory). "How to check" and Open items come from that mapping; a check command aimed at a folder the change doesn't touch is dropped, and "no CI job covers this change" is said when none does. - common::e2e::probe and the coder's probe_page tool: an outside page is loaded with Playwright in the sandbox and its test ids and JSON fields recorded under .coderhelm/probes/. The review requests changes on a new or changed e2e file whose selectors or fields on an outside origin no probe observed. * Descriptions without repeats or deploy maps; no stand-in keys; squash churn Every pull request description passes common::description_lint where it is written: a repeated section keeps its newest copy, lines listing several deploy workflows go, and an empty "who this affects" goes. Commit subjects never carry a stand-in key. Every mark-ready path squashes fix-round churn (more than five commits); squash_branch still refuses a branch with a person's commits. * Descriptions are Problem, Changes, Risk, Verification; settled items go; squash into a few commits The description is laid out as Problem, Changes, Needed from you (only when a person must act), Risk and Verification, two or three lines each, rebuilt from the head's facts. Verification holds the waiting line, the preview link, the screenshots and how to check. pr_body::defects checks the order, the line counts and that no section is said twice. pr_facts::settled drops an open or unverified item once every check of the kind it names passed on the head, and an item CI closes once all checks passed: the evidence decides, not the wording. The final squash keeps a few logical commits: the first commit's subject with the run's key, then one per run of review fixes, check fixes or follow-ups. A branch with a merge of the base becomes one commit; one with a person's commit is never rewritten; the ref moves only if nobody pushed since it was read. * Format the incident module list after the merge * A missing end-to-end spec is CoderHelm's bounded wait, never a person's hold (with main's human-only rule) * Answers on the ticket are decisions in every run; related tickets are checked before ready (#744) * Web changes are proven on their preview before they are called ready A web pull request was marked ready with its preview deploy and preview end-to-end checks skipped (they skip drafts and run on a label), listed as "skipped (its conditions left this PR out)" next to passing unit tests, with no screenshot, "npm test" as the way to check it, and a tests check that passed on 0 of 6 changed tests failing without the change. - common::preview reads the repository's workflow files (on: events, paths, branches, types, and each job's if: labels) into the preview and end-to-end jobs that cover the change, the labels that start them (the test map's areas first, never a shared environment's label) and which skip drafts; it also decides from the paths and the tree whether a visible change needs an end-to-end spec, the pages to capture, the capture script and the real "How to check" commands. - worker::preview starts the preview (labels, a push when the workflow reads labels only on one), reads its checks and address, captures the changed pages at desktop and phone width in the sandbox and keeps them on refs/coderhelm/screenshots; the PR watch does it for finished runs. - The ready decision marks a draft ready for preview checks that skip drafts and waits on them; a failed preview or a visible change with no end-to-end spec holds it. - A skipped check that covers the change is a gap in the description, never evidence; the description shows the preview, its checks and the captured pages. - The tests check never passes on zero tests failing without the change; the reviewer requests changes on a visible change with no end-to-end spec; the coder and planner prompts say so too. - common::waiting_line gives the run page and the description one line on what the pull request waits on; the gateway serves it with the preview. * Failures are read from their report, checks are named by the job that covers the change, outside pages are probed - common::e2e::failure_read: a failed end-to-end check is read from the e2e workflow's comment on the pull request, its annotations, then its job log, before anything is said about it; "couldn't be read" only when all are empty. Whether the change caused it comes from the same check on the base branch and the specs the change touched. The preview state records each failure, the description says it, and a line claiming an unread log is dropped while a report exists. - common::ci_cover maps the changed paths to the jobs that run on them (paths filters, branches, working-directory). "How to check" and Open items come from that mapping; a check command aimed at a folder the change doesn't touch is dropped, and "no CI job covers this change" is said when none does. - common::e2e::probe and the coder's probe_page tool: an outside page is loaded with Playwright in the sandbox and its test ids and JSON fields recorded under .coderhelm/probes/. The review requests changes on a new or changed e2e file whose selectors or fields on an outside origin no probe observed. * Answers on the ticket are decisions in every run; related tickets are checked before ready Every answer and instruction people wrote on the ticket counts in every run on it, whichever run handled it, and a description never lists an answered item as pending. The Jira app sends the ticket's linked tickets; their criteria reach the plan, and before the pull request is called ready each one, and each address a pull request closed in favor of it moved, is checked or listed as not covered with why. * Pin the dashboard for the November 17 release (#750) * The coder plans and builds the smallest change the ticket asks for (#742) * Web changes are proven on their preview before they are called ready A web pull request was marked ready with its preview deploy and preview end-to-end checks skipped (they skip drafts and run on a label), listed as "skipped (its conditions left this PR out)" next to passing unit tests, with no screenshot, "npm test" as the way to check it, and a tests check that passed on 0 of 6 changed tests failing without the change. - common::preview reads the repository's workflow files (on: events, paths, branches, types, and each job's if: labels) into the preview and end-to-end jobs that cover the change, the labels that start them (the test map's areas first, never a shared environment's label) and which skip drafts; it also decides from the paths and the tree whether a visible change needs an end-to-end spec, the pages to capture, the capture script and the real "How to check" commands. - worker::preview starts the preview (labels, a push when the workflow reads labels only on one), reads its checks and address, captures the changed pages at desktop and phone width in the sandbox and keeps them on refs/coderhelm/screenshots; the PR watch does it for finished runs. - The ready decision marks a draft ready for preview checks that skip drafts and waits on them; a failed preview or a visible change with no end-to-end spec holds it. - A skipped check that covers the change is a gap in the description, never evidence; the description shows the preview, its checks and the captured pages. - The tests check never passes on zero tests failing without the change; the reviewer requests changes on a visible change with no end-to-end spec; the coder and planner prompts say so too. - common::waiting_line gives the run page and the description one line on what the pull request waits on; the gateway serves it with the preview. * Failures are read from their report, checks are named by the job that covers the change, outside pages are probed - common::e2e::failure_read: a failed end-to-end check is read from the e2e workflow's comment on the pull request, its annotations, then its job log, before anything is said about it; "couldn't be read" only when all are empty. Whether the change caused it comes from the same check on the base branch and the specs the change touched. The preview state records each failure, the description says it, and a line claiming an unread log is dropped while a report exists. - common::ci_cover maps the changed paths to the jobs that run on them (paths filters, branches, working-directory). "How to check" and Open items come from that mapping; a check command aimed at a folder the change doesn't touch is dropped, and "no CI job covers this change" is said when none does. - common::e2e::probe and the coder's probe_page tool: an outside page is loaded with Playwright in the sandbox and its test ids and JSON fields recorded under .coderhelm/probes/. The review requests changes on a new or changed e2e file whose selectors or fields on an outside origin no probe observed. * The coder plans, builds and is reviewed as the smallest change the ticket asks for Explore before planning (the ticket's own names are searched and handed to the planner), five required plan sections (Reuse, Must not change, Measure first, Smallest change, Proof) with a gate that sends back parallel structures, widening the ticket doesn't ask for, unmeasured outside pages and test-for-product flips; a coder guard that needs a search and a reuse list before the first write and refuses a twin of an existing map or helper; a diff check after the build and in the review for parallel structures, deletes or overwrites where the base only added, log level changes, unasked reporting, oversized tests and invented payloads; and data rules that ask for skip reporting only when the ticket does. * Reused helpers state what they do to stored rows; the test environment is installed once per run The plan check reads each helper named under Reuse and calls it insert only or replacing (a DELETE, ON CONFLICT DO UPDATE, a delete then an insert, a relation .set). A replacing helper the plan doesn't say replaces, or one reused on a path that only inserts today when the ticket asks for no replacement, sends the plan back. The first round reads how the repository's CI installs and runs its tests, records it on the run, and every later sandbox build of every round and the proof step restores the cached install instead of installing again. The coder is told the environment is ready and how the tests run. * Pin the dashboard for the November 17 coder release (#751) * Replies are one short line: no echo, no header, no self-link (#752) * Replies are one short line: no echo, no header, no self-link A person wrote "@CoderHelm rebase with main" and got back a quote of that comment, an "@name, replying to your comment" header, a second @-mention, "you asked for a rebase with main:", two clauses on how the merge was done, and a link to the pull request the reply sat on. Every comment now passes the thread rules before it is posted (comment_style::tidy and lint_on, in the conversation layer, review thread replies, formal reviews and the person-lines note): no "replying to" header; a quote only when the comment answered is not the newest, never with a header; one @-mention of a person at most; never a link to the thread itself; never the request said back. The templates say it at their source: a branch update is one line ("Merged main in (15401ad).", a reason only when a rebase was asked), posted as written with no model rewrite; callers no longer prefix "@author"; ticket replies, the CoderHelm answers note, the lessons reply, the re-approval notice and the repo move drop their echoes and self-links. The reply and judge prompts ask for one plain line. Replay: incident cb_terse_reply. * Format the incident files * Fix rounds agree, proof answers are judged, tests run for the change (#753) * Fix rounds agree, answers reach the proof judge, tests run for the change - A planned-work round no longer builds again what a review commit on the pull request took out; when an acceptance criterion asks for it, the ticket wins and the item carries the criterion (round_agree). Plain Jira acceptance criteria are read (stop_judge::acceptance). - A proof fix round that answered gaps by looking (lookups, a check run) is judged again on the same head instead of reusing the result from before the round (proof::round_answered, CheckRecord::answered). - The test environment is the CI job whose tests run for the plan's files, not the first workflow's job (test_env::from_workflows_for); a run's record for another package is worked out again. Incidents: cm_test_env_for_the_change, cn_proof_answer_judged, co_rounds_agree. * Format the incident files * Pin the dashboard for the November 17 replies release (#756) * End-to-end selectors come from a live probe; untaken test branches are labelled; writes carry only the fix's lines (#755) * End-to-end selectors come from a live probe; untaken test branches are labelled; writes carry only the fix's lines A vendor-portal spec's registration-open branch was written from test-id strings found in the vendor's script bundle after the shell refused a Playwright probe. Only the closed branch ever ran, and a later run kept it and re-wrapped lines no formatter checks. The review's probe gate read only added, single-line getByTestId calls and ran only in the reviewer. - common::e2e::probe reads wrapped and pattern ids, holds kept ids too, treats framed pages as outside, and records states and clicks. - common::e2e::branches finds test branches on page state and which arm a report or a probe would take. - common::diff_shape tells and puts back formatting-only hunks. - worker::live_guard refuses coder writes with unprobed outside ids or only formatting, commits probe records, and feeds the habits check. * Format the incident files * WAF alarm runs read their evidence; a missing AWS read is one install item (#757) * WAF alarm runs read their evidence; a missing AWS read is one install item A run for a WAF signature-drift alarm ended needs_input asking a person to grant the team's read-only role WAF and Athena access. The role's setup script never added any WAF read, and logs held in S3 were never read. - The setup script adds coderhelm-read-waf: wafv2 Get/List, read-only Athena queries in the WAF log workgroups over the Glue tables on aws-waf-logs-* buckets, s3:PutObject only under the workgroup's results prefix, everything else denied. waf_update_line is the one-line CloudShell update for an existing role. - alarm_evidence reads a web ACL's S3 logs through Athena: one bounded query (last three hours, the alarm's rule), keeping only JA4, JA3, user agent, accept language, path, cookie presence and counts. - A refused read is recorded once per account (aws_role_reads) and shown as the "AWS role reads" setup check with the update line; the run names it in one line and goes on. - The stop judge turns an access ask or a hold on the role's reads into a proceed, the hand-back list no longer carries it, and an access question shows no default that can't happen and gets no deadline. - Incident bo replays the run; self-host docs updated. * Format the incident files * Pin the dashboard for the November 17 live-page release (#759) * A red check is reproduced against the base branch before a revert or a blame (#754) * A red check is reproduced against the base branch before a revert or a blame Before a CI fix round the failure is read from its own report (test, error, screenshot, report link) and the failing test runs with the head's test code against the base branch's deployment and the pull request's preview; both results and each failing check's result on the base head are kept on the run. A revert of CoderHelm's own work needs a record showing the change caused the failure. Blame and "couldn't confirm" sentences are held against the record. The description's CI failing section and revert lines are rebuilt for the head. * Format the incident files * The reviewer reads the merge base, settles probes itself, reads red checks test by test (#758) A re-review after an approval or a review reads only the pull request's own change since then; files a base merge brought in are left out, and a finding calling a file outside the merge-base diff unrelated is dropped. A passing end-to-end run on the head whose report shows the test ids is a probe record; for what is still unobserved the reviewer runs the probe itself and decides from its record. A red check is read test by test from each failing test's own error, tests in touched specs first, never as the base branch's by its name. Blame and revert sentences the comparison doesn't back are held. On CoderHelm's own pull request a request for a test always goes to the coder, with how to test a script (stubs on PATH, fixtures). * Pin the dashboard for the November 17 reviewer release (#763) * A CI fix is pushed only after its own checks pass, and red CI stops named instead of rolling back (#760) * A red check is reproduced against the base branch before a revert or a blame Before a CI fix round the failure is read from its own report (test, error, screenshot, report link) and the failing test runs with the head's test code against the base branch's deployment and the pull request's preview; both results and each failing check's result on the base head are kept on the run. A revert of CoderHelm's own work needs a record showing the change caused the failure. Blame and "couldn't confirm" sentences are held against the record. The description's CI failing section and revert lines are rebuilt for the head. * Format the incident files * A CI fix is pushed only after its own checks pass, and red CI stops named instead of rolling back - run_checks runs the owning package's own scripts: its whole unit suite when a non-test file changed, only the touched test files otherwise, and its type check and lint. The test line taken from the first workflow (another package's suite with --passWithNoTests) no longer stands in. - A CI fix round's commit is held when its checks are red or never ran on its last edit, and when it removes a definition a test still names; one the sandbox couldn't check is pushed with an Unverified: line and what ran. - Every round's commit message is checked against its diff and rewritten from it when they disagree. - Two pushed fixes per failing test, kept on the run; then the rounds stop with the test and its error named. Red checks never roll a ticket run's branch back to an older green head or take a planned task out; only a dependency run's newest set of bumps comes out. - An unreadable CI log gets the package's commands to reproduce it locally. - The habits check sends back fixture ids invented while the run looked up real ones, and test cases that differ only in their values. - Incidents ga and gb replay both pull requests; docs/coder-loop.md step 7. * Keep a blank line before the commit and push step * Put commit and push before rounds agree in the coder loop page * Scope is decided once and held; the description describes the head (#762) * A red check is reproduced against the base branch before a revert or a blame Before a CI fix round the failure is read from its own report (test, error, screenshot, report link) and the failing test runs with the head's test code against the base branch's deployment and the pull request's preview; both results and each failing check's result on the base head are kept on the run. A revert of CoderHelm's own work needs a record showing the change caused the failure. Blame and "couldn't confirm" sentences are held against the record. The description's CI failing section and revert lines are rebuilt for the head. * Format the incident files * A CI fix is pushed only after its own checks pass, and red CI stops named instead of rolling back - run_checks runs the owning package's own scripts: its whole unit suite when a non-test file changed, only the touched test files otherwise, and its type check and lint. The test line taken from the first workflow (another package's suite with --passWithNoTests) no longer stands in. - A CI fix round's commit is held when its checks are red or never ran on its last edit, and when it removes a definition a test still names; one the sandbox couldn't check is pushed with an Unverified: line and what ran. - Every round's commit message is checked against its diff and rewritten from it when they disagree. - Two pushed fixes per failing test, kept on the run; then the rounds stop with the test and its error named. Red checks never roll a ticket run's branch back to an older green head or take a planned task out; only a dependency run's newest set of bumps comes out. - An unreadable CI log gets the package's commands to reproduce it locally. - The habits check sends back fixture ids invented while the run looked up real ones, and test cases that differ only in their values. - Incidents ga and gb replay both pull requests; docs/coder-loop.md step 7. * Scope is decided once and held; the description describes the head A pull request's path-page work went in, came out, and its tests came back; its plan left three product questions open and its description said the path pages were out of scope while the diff changed them. - common::scope_ledger: the ticket's acceptance criteria (in scope) and the plan's Out of scope lines, each with a reason and the names, paths or routes that show it; open questions decided with their default. - Plan gate: design.md must have Out of scope; open questions, items without a reason, items a criterion asks for, tasks naming an out-of-scope item and open-ended tasks go back. The ledger is written when the plan is generated, before any code, and never rewritten. - Every round: the tests and scope check sends back out-of-scope items the diff brings in, tests included; planned-work rounds skip them; a Scope change line must cite a criterion or a person's comment. - Description, on every build: one Out of scope line from the ledger; question and history sections go; sentences the diff refutes go; the notes fit a length scaled to the changed code. defects() fails a body that asks an open product question. - Incidents sl_scope_decided_once and sm_description_of_the_head; docs/coder-loop.md steps 8 and 9. * Keep a blank line before the commit and push step * Put commit and push before rounds agree in the coder loop page * Run the scope ledger after the live page facts; doc steps follow commit and push * CoderHelm's reviews and threads stay tidy between reviews (#761) A review body, a settled thread and a merged pull request's reviews were cleaned up only when CoderHelm posted a new review. Now the same cleanup runs on a push, when checks finish, on a merge or a close, and on the review sweep: - a review body for an older commit than the head becomes one line (verdict, the commit it reviewed, why); a request for changes keeps its reasons until the next review replaces it; - on a merge or a close every body becomes one line and CoderHelm's resolved threads are hidden; - a failing-check thread resolves once the head's checks pass, a thread whose file or lines left the diff resolves, and CoderHelm's comments in them are hidden; - a new review keeps only its verdict, why and what holds the merge in sight; the overview, file table, risk, FYI, verification, tests and earlier comments fold under one collapsed block. Only CoderHelm's own reviews, comments and threads are changed, never a thread a person opened or one with a person's reply waiting, and nothing is posted to announce it. * Pin the dashboard for the November 17 coder-gates release (#767) * Each ticket criterion is proven end to end both ways; twin helpers in one change are caught (#766) The plan maps each criterion that names a page or what a person sees to an end-to-end test of that page (Criteria map), and is sent back without it. Before the pull request is done, each test runs on staging (must fail) and on the preview (must pass) through the red-check runner; both results go on the run and into the pull request. A test passing on both, failing on the preview or missing goes back to the coder; a side that couldn't run is labelled unverified with its reason. New helpers in one diff are compared with each other, and the coder's guard asks a second similar helper to name what it shares. * One verdict per finding; every finding is raised in the first review; the review and fix loop ends (#765) * One verdict per finding; every finding is raised in the first review A review listed findings under "Holding the merge" that the same review said no longer applied or kept as notes, and a review three rounds in raised two findings on code unchanged since the first review, each costing a push and a review. - review_one_verdict settles each finding's one state before the body is written (blocking, note, settled, no longer applies) and checks the finished body before it is posted. Resolved, settled and gone threads, late findings and earlier holds now called notes never hold. - A late finding is a note naming why: the previous review missed it, or the check that found it started after that review. On CoderHelm's own pull request it joins a round that has other work, never a hold. A miss is recorded (RewardKind::FindingMissed, the raise-early lesson). - The first review runs everything: the checks with no model run without the tree, the diff keeps every file and names the ones it cut, and a review that runs out of tool steps goes on in a second pass. - After the first review, smallest-change advice is a note; late notes never start a fix round, so a run with only notes left ends. The parallel-structure check reads both sides against the base. - Every head a run pushes gets the PR reviewer's review posted. - Incidents ow, ox and oy replay the two pull requests. * The reviewer converges: only actionable findings block, and an approval follows proven criteria A pull request's fix was right by its third commit, with CI and the preview's end-to-end run green, and the review requested changes for six more rounds on two generic findings. review_discipline::judge runs on every review before the verdict: - a blocking finding names its file, its line and what it conflicts with or asks for (smallest-change findings are anchored on their line); - a generic finding raised before on another file doesn't move; - a finding that asks the opposite of an earlier request is a note; - a finding CoderHelm's own rounds deferred holds only with new code; - a person's answer on the PR or the ticket decides scope; - with each criterion proven both ways (the run's e2e proofs) and CI green, what isn't a shown defect is a follow-up on an approval. A deferred finding's thread no longer holds the merge. Incident oz replays the whole sequence. * A bug is reproduced on the base before it is planned; people's answers decide scope (#768) The planner runs the ticket's inputs through the base code (reproduce_on_base) and writes ## Reproduce: inputs with stored variants, the command and its output, the wrong line. The fix goes in that line's mechanism; questions a lookup answers are looked up first; a diff rewriting a path for a few named records goes back; new tests run on the base the way CI runs them, loops included, and an unproven bug fix says Unverified. A person's answer or comment moves an out-of-scope item in at seed and every round, and a revert of it is a breach. * New AWS reads reach every team through the role stack's template (#764) * New AWS reads reach every team through the role stack's template Every read CoderHelm has in a team's account is declared in the role stack's one versioned template, as named groups a stack parameter switches on: WafLogs (with WafLogResults and WafLogKey), DatabaseClusters and Warehouses. A release can't widen a team's role by itself, so the install's one item, AWS role reads, is this release's one-click update of that stack with the account's groups and what CoderHelm found filled in; an AWS admin of the account creates it. WAF alarm runs record the log bucket's KMS key and the workgroup's results location and ask nobody. The data-source script no longer writes role policies: it makes the read-only database user and creates or updates the role stack. Sources on the script-made CoderhelmReadOnly role move onto the stack's role once it passes their own connection check. The CloudShell WAF line is removed. * The settings test leaves out the WAF log group's reads * The update template's description fits CloudFormation's 1,024 characters * Wait for the deploy label's workflow before a draft leaves draft, and quote its run A repository's deploy label (the reviewer setting that starts its own preview deploy or end-to-end runs) was only a wait before auto-merge. A pull request was marked ready while the labelled workflow still ran, its description never said how that workflow ended, and a workflow that takes its label off when its run ends never ran again after a fix round pushed a new commit. The deploy label's workflows are now part of the head's preview, in its one record (preview_state): - Their jobs (common::deploy_label::covers) are covering checks for every change, read with covering_results like the preview plan's: a draft waits while they run, a failure is held once (never again when CI's hold already names the check), and a failure a later skipped run hides from the newest check of its name still reaches the CI fix loop's triggers, by check name, so the base comparison applies. - preview::advance adds the settings-named deploy labels once per head, never on a head where their workflow already ran. Every label it adds follows one rule: put on only when it was never taken off, or a workflow or CoderHelm took it off. One a person or another app took off, or that CoderHelm can't tell who took off, stays off, and the description says so. The auto-merge gate follows the same rule; a failed read of who took it off leaves it off and never fails the gate. - A check held for a protected environment's approval asks for that approval, naming the environment. A deploy workflow that failed before any job ran is a person's hold that says nothing on the branch can fix. - Verification quotes each deploy-label check once, with its run. * Pin the dashboard for the November 17 proof release (#770) * no-mistakes(review): Re-read failed deploy runs; name unstarted by job * The changed tests run both ways: CI's install, a budget of their own, every runner read (#769) * A bug is reproduced on the base before it is planned; people's answers decide scope The planner runs the ticket's inputs through the base code (reproduce_on_base) and writes ## Reproduce: inputs with stored variants, the command and its output, the wrong line. The fix goes in that line's mechanism; questions a lookup answers are looked up first; a diff rewriting a path for a few named records goes back; new tests run on the base the way CI runs them, loops included, and an unproven bug fix says Unverified. A person's answer or comment moves an out-of-scope item in at seed and every round, and a revert of it is a breach. * The changed tests run both ways: CI's install, a budget of their own, every runner read Across the 53 most recent runs, none of the 17 with a test check ran a new test on the base and the head. Six failed the install: a pnpm workspace member was installed on its own (`cd apps/web && pnpm install --ignore-workspace --frozen-lockfile`), where pnpm stops with ERR_PNPM_N…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pins selfhost/versions.json dashboardRef to the current dashboard main.
Changes
Verification